<?php

include "header.php";

if( logged_in() ) {

?>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<link rel="stylesheet" type="text/css" href="css/admin.css" media="screen"/>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/student.js"></script>
	<script class="jsbin" src="http://datatables.net/download/build/jquery.dataTables.nightly.js"></script>
	<style type="text/css">
      @import "http://live.datatables.net/media/css/demo_page.css";
      @import "http://live.datatables.net/media/css/demo_table.css";
    </style>
</head>
<body>
<div class="logout">
<a id="logout" href="logout.php">Wyloguj</a>
</div>
<div id="gora"></div>
 
 <div class="login">
 
<table>
	<tr>
 		<td>
 			imie:
 		</td>
 		<td>	
 			<input type="text" id="imie" name="imie"/>
 		</td>
 		<td>
 			nazwisko:
 		</td>
 		<td>	
 			<input type="text" id="nazwisko" name="nazwisko"/>
 		</td>
 	</tr>

	<tr>
		<td>
			nr leg:
		</td>
 		<td>	
			<input type="text" id="nrleg" name="nrleg"/>
		</td>	

 		<td>
 			email:
 		</td>
 		<td>	
 			<input type="text" id="email" name="email"/>
		</td>
	</tr>
</table> 
 <br>
 	
	<button onClick="wyniki()">Show student</button>
 <br>
 <br>
 <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
        <thead>
          <tr>
            <th>Imie</th>
            <th>Nazwisko</th>
            <th>nr leg</th>
            <th>email</th>
            <th>wydział</th>
            <th>wydano bilet</th>
            <th>wydaj</th>
            <th>usuń</th>
          </tr>
        </thead>
        <tbody id="wyniki">
			<tr><td></td></tr>
        
        </tbody>
        <tfoot>
        	<th>Imie</th>
            <th>Nazwisko</th>
            <th>nr leg</th>
            <th>email</th>
            <th>wydział</th>
            <th>wydano bilet</th>
            <th>wydaj</th>
            <th>usuń</th>
        </tfoot>
        
      </table>
      
</div>  


</body>
</html>
<?php      
} else {
	header('Location: admin.php');
	exit();
}
?>
      
      